<?php
/**
 * ExtTreeLoader class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtTreeLoader extends ExtTreeLoaderBase
{
    /**
     * Gets the value of ExtJS clearOnLoad property
     * @return Boolean 
     */
    public function getClearOnLoad()
    {
    	return $this->getConfig("clearonload");
    }

    /**
     * Sets the value of ExtJS clearOnLoad property
     * @param Boolean $value 
     */
    public function setClearOnLoad($value)
    {
    	$this->setConfig("clearonload",$value);
    }

    /**
     * Gets the value of ExtJS dataUrl property
     * @return String 
     */
    public function getDataUrl()
    {
    	return $this->getConfig("dataurl");
    }

    /**
     * Sets the value of ExtJS dataUrl property
     * @param String $value 
     */
    public function setDataUrl($value)
    {
    	$this->setConfig("dataurl",$value);
    }

    /**
     * Gets the value of ExtJS nodeParameter property
     * @return String 
     */
    public function getNodeParameter()
    {
    	return $this->getConfig("nodeparameter");
    }

    /**
     * Sets the value of ExtJS nodeParameter property
     * @param String $value 
     */
    public function setNodeParameter($value)
    {
    	$this->setConfig("nodeparameter",$value);
    }

    /**
     * Gets the value of ExtJS preloadChildren property
     * @return Boolean 
     */
    public function getPreloadChildren()
    {
    	return $this->getConfig("preloadchildren");
    }

    /**
     * Sets the value of ExtJS preloadChildren property
     * @param Boolean $value 
     */
    public function setPreloadChildren($value)
    {
    	$this->setConfig("preloadchildren",$value);
    }

    /**
     * Gets the value of ExtJS requestMethod property
     * @return String 
     */
    public function getRequestMethod()
    {
    	return $this->getConfig("requestmethod");
    }

    /**
     * Sets the value of ExtJS requestMethod property
     * @param String $value 
     */
    public function setRequestMethod($value)
    {
    	$this->setConfig("requestmethod",$value);
    }

    /**
     * Gets the value of ExtJS url property
     * @return String 
     */
    public function getUrl()
    {
    	return $this->getConfig("url");
    }

    /**
     * Sets the value of ExtJS url property
     * @param String $value 
     */
    public function setUrl($value)
    {
    	$this->setConfig("url",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'clearonload' => 'clearOnLoad',
            'dataurl' => 'dataUrl',
            'nodeparameter' => 'nodeParameter',
            'preloadchildren' => 'preloadChildren',
            'requestmethod' => 'requestMethod'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'beforeload' => array('This','node','callback'),
            'load' => array('This','node','response'),
            'loadexception' => array('This','node','response')
        ));


        $this->proptags = array_merge($this->proptags,array(
            'baseparameters' => true
        ));
        $this->setXType(null);
        $this->setXClass('Ext.tree.TreeLoader');
    }    
}
?>